package sample;

import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.stereotype.Controller;
import reactor.core.publisher.Mono;

@Controller
public class MessageController {

    @MessageMapping("message")
    public Mono<String> message() {
        return Mono.just("Hello");
    }

    @MessageMapping("test")
    public Mono<String> test() {
        return Mono.just("test");
    }

}
